package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestLife {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext("cn/tedu/spring/life");
        Life life = ac.getBean(Life.class);
        //使用阶段
        System.out.println("4.开发者使用阶段");
        //关闭IoC容器
        ac.close();
    }
}
